| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import commander from 'commander' |
||
| 3 | |||
| 4 | export default (program: typeof commander): commander.Command => program |
||
| 5 | .command('link') |
||
| 6 | .option('-t, --type <type>', 'Provide a type for generating an optimized Nginx config. Supported: laravel, magento2, magento1.') |
||
| 7 | .description('Create a new Nginx vhost config for your current project.') |
||
| 8 | .action((options: commander.Command) => { |
||
| 9 | (new SitesController()).executeLink(options.type).catch(err => console.log(err.message)) |
||
| 10 | }) |